import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import {errorr} from "./api/error.js"
import {getDateCycle} from "./api/dateFormat.js"
Vue.config.productionTip = false


import {post,get,patch,put,postlogin,getlogin} from './api/http'
//定义全局变量
Vue.prototype.$post=post;
Vue.prototype.$get=get;
Vue.prototype.$patch=patch;
Vue.prototype.$put=put;
Vue.prototype.$postlogin=postlogin;
Vue.prototype.$getlogin=getlogin;
Vue.prototype.$error=errorr;
Vue.prototype.$getDateCycle=getDateCycle;
//引入图片翻转
import EXIF from "exif-js";
Vue.use(EXIF);    //全局申明

import { NavBar } from 'vant';
import { Tab, Tabs } from 'vant';
import { Divider } from 'vant';
import { Search } from 'vant';
import { Row, Col } from 'vant';
import { Uploader } from 'vant';
import { PullRefresh } from 'vant';
import { List } from 'vant';
import { Cell, CellGroup } from 'vant';
import { Toast } from 'vant';
import { Lazyload } from 'vant';
import { ImagePreview } from 'vant';
import { Progress } from 'vant';
import { Loading } from 'vant';
import { Circle } from 'vant';
import { Overlay } from 'vant';

Vue.use(Overlay);
Vue.use(Circle);
Vue.use(Loading);
Vue.use(Progress);
Vue.use(ImagePreview);
// options 为可选参数，无则不传
Vue.use(Lazyload);
Vue.use(Toast);
Vue.use(Cell).use(CellGroup);
Vue.use(List);
Vue.use(PullRefresh);
Vue.use(Uploader);
Vue.use(Row).use(Col);
Vue.use(Search);
Vue.use(Divider);
Vue.use(Tab).use(Tabs);
Vue.use(NavBar);

import 'vant/lib/index.css';
import "./css/reset.css"
import "./api/public.js"
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
